package org.bookie.hibernate.config.entries;

import org.bookie.hibernate.config.ApplicableElement;
import org.hibernate.cfg.AnnotationConfiguration;

/**
 * Annotated package configuration element represntation
 * 
 * @author schulte
 * 
 */
public class PackageElement implements ApplicableElement {
	
	private String thePackage;

	public void applyTo(AnnotationConfiguration config) {
		config.addPackage(thePackage);
	}

	public void setPackage(String p) {
		thePackage = p;
	}

	public String getPackage() {
		return thePackage;
	}
	
	@Override
	public String toString() {
		return "HibernatePackage(" + thePackage + ")";
	}

}
